#ifndef TABWIDGET_H
#define TABWIDGET_H

#include <QTabWidget>
#include <QUrl>
#include <QIcon>
#include <QString>
#include <QWebView>
#include <QWidget>

#include <QHBoxLayout>
#include <QMainWindow>

#include "myview.h" // UN-NEEDED?
class myWebView;

class tabWidget : public QTabWidget
{
    Q_OBJECT
public:
    tabWidget(QWidget *parent);

private:
    QNetworkAccessManager *manager;
    QWidget *finestrella;
    QHBoxLayout *qbl;
    myWebView *webView(int index) const;

    bool noTabsOn();
    void createTabForURL(QUrl url, QIcon icon, QString label);
    int findMatchingTab(QUrl url);

public slots:
    myWebView *currentWebView() const;
    myWebView *newTab(bool makeCurrent = true);
    void aggiungitab(QUrl,QIcon,QString);
    void aggiornatab(int);
    void aggiornatabtip(QUrl);
    void chiuditab(int);

};
class singletab;

#endif // TABWIDGET_H
